const mongoose=require('mongoose');
var mongoosePaginate=require('mongoose-paginate');

var schema=new mongoose.Schema({
    text:String,
    username:String,
    newsId:mongoose.Schema.ObjectId
});

schema.plugin(mongoosePaginate);
module.exports=mongoose.model('Comment',schema,'comment');